<?php

namespace app\admin\controller;

use think\Request;
use app\admin\logic\WorkLogic;

class Main extends Base
{

    private $workLogic;

    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $this->workLogic = new WorkLogic();
    }

    // 登陆页面
    public function index()
    {
        return $this->fetch();
    }

    /**
     * 模块首页
     * @return mixed
     */
    public function navigate()
    {
        return $this->fetch();
    }

    /**
     * 主框架页面
     * @return mixed
     */
    public function main()
    {
        return $this->fetch();
    }

    /**
     * 接待
     * @return mixed
     */
    public function moduleFront()
    {
        $this->assign('indexCount',$this->workLogic->getCount('indexCount'));
        $this->assign('payCount',$this->workLogic->getCount('payCount'));
        $this->assign('invoiceCount',$this->workLogic->getCount('invoiceCount'));
		return $this->fetch();
	}

    /**
     * 维修技师页面
     * @return mixed
     */
    public function moduleTech()
    {
        return $this->fetch();
    }
}
